package com.itsu;

import com.itsu.config.SpringApplicationConfig;
import com.itsu.domain.User;
import com.itsu.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.data.redis.core.RedisTemplate;
import redis.clients.jedis.JedisPool;

import java.util.List;
import java.util.stream.Collectors;

public class Application {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(SpringApplicationConfig.class);
        UserService userService = applicationContext.getBean(UserService.class);
        userService.test();


    }


}
